define(() => {
    return function (res, goodsMsg) {
        let str = "";
        for (let i = 0; i < res.length; i++) {
            for (let j = 0; j < goodsMsg.length; j++) {
                if (res[i].proId == goodsMsg[j].id) {

                    str += `<ul class="order_list" index="${res[i].proId}">
                    <li class="selecter">
                        <input type="checkbox" class="check" ${goodsMsg[j].check ? 'checked' : ''}>
                    </li>
                    <li class="img_box">
                        <a href="">
                            <img src="${res[i].url}" alt="">
                        </a>
                    </li>
                    <li class="product">
                        <a href="">
                            <span>${res[i].product_name}</span>
                        </a>
                    </li>
                    <li class="order_price">
                        <span>￥</span>
                        <span>${res[i].price}</span>
                    </li>
                    <li class="num">
                    <input type="number" value="${goodsMsg[j].num}" class="setNum">
                    </li>
                    <li class="sub">
                        ${res[i].price * goodsMsg[j].num}
                    </li>
                    <li class="operate">
                        <a href="#" class="delBtn">删除</a>
                    </li>
                </ul>`
                }
            }
        }
        $(".bd").html(str)
    }
});